#ifndef MYDATA_H
#define MYDATA_H

#include <QObject>
#include <math.h>

class MyData : public QObject
{
    Q_OBJECT
public:
    explicit MyData(QObject *parent = nullptr);
    /**
     * @brief  获取当前波形的点的个数
     * @param
     * @param  unsigned int 返回个数
     * @return
     */
    unsigned int getCount();
    /**
     * @brief  获取当前需要显示波形点的具体值
     * @param
     * @param  double* 点位值
     * @return
     */
    double * getValue();
    /**
     * @brief  将波形数据值进行更新一次
     * @param
     * @param
     * @return
     */
    void reFreshData();
private:
    unsigned int count;
    double* value;
signals:


public slots:
};

#endif // MYDATA_H
